package com.zsc.wxm.ysh.anjo.sms.feign;

import com.zsc.wxm.ysh.anjo.result.Result;
import com.zsc.wxm.ysh.anjo.service.base.model.member.dto.MemberInfoDTO;
import com.zsc.wxm.ysh.anjo.service.base.model.member.qo.MemberQuery;
import com.zsc.wxm.ysh.anjo.sms.feign.fallback.MemberServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述：远程调用用户微服务
 *
 * @author playmaker
 * @since 2021/2/9 1:30
 */
@FeignClient(value = "anjo-member-service", fallback = MemberServiceFallBack.class)
public interface MemberService {

    /**
     * 更新用户信息
     *
     * @param params
     * @return
     */
    @PostMapping("/user/member/update-member-info")
    Result updateMemberInfo(@RequestBody MemberInfoDTO params);


    /**
     * 根据查询条件查询
     *
     * @param memberQuery
     * @return
     */
    @PostMapping("/user/member/get-one")
    Result getOne(@RequestBody MemberQuery memberQuery);
}
